package com.chaoxing.entity;

import lombok.Data;
import java.util.Date;

@Data
public class Activity {
    private String activeId;
    private String name;
    private String courseId;
    private String clazzId;
    private SignType type;
    private Integer status; // 0: 未开始, 1: 进行中, 2: 已结束
    private Date startTime;
    private Date endTime;
    private boolean isSigned;
    
    private Integer otherId;
    private String refObjectId;
    private boolean active;
    
    public boolean isActive() {
        return status != null && status == 1;
    }
}